// 模拟数据接口 Mockjs
const { body, check, checkSchema } = require("express-validator")
const Mock = require("mockjs")
const Random = Mock.Random
// 关于官网点击 登录 注册的模拟埋点数据
exports.mock_WebsiteClick = [
	(req, res, next) => {
		let arr = []
		let tempDate = "2023-02-0"
		for (let x = 1; x <= 6; x++) {
			let data = {
				id: Random.id(),
				date: `${tempDate}${x}`,
				ClickNum: Random.integer(100, 1000),
				LoginedNum: Random.integer(1, 100),
				registeiedNum: Random.integer(1, 50)
			}
			arr.push(data)
		}

		res.json({
			status: 0,
			data: arr
		})
	}
]